function modal(operate,overmodal,overwindow,closeX){
	var win_width = "";
	var win_height = "";
	var win_left = "";
	var win_top = "";
	var modal_width = "";
	var modal_height = "";
	//var obj = document.getElementById("overmodal");
	//var coverObj = document.getElementById("overwindow");
	//var closeObj = document.getElementById("closeX");
	var obj = document.getElementById(overmodal);
	var coverObj = document.getElementById(overwindow);
	var closeObj = document.getElementById(closeX);
	if (typeof window.innerWidth != 'undefined') {
		win_width = window.innerWidth;
		win_height = window.innerHeight;
	} else {
		win_width = document.documentElement.clientWidth;
		win_height = document.documentElement.clientHeight;
	}
	if (operate == 'open') {
		document.body.style.overflow = "hidden";
		obj.style.display = "block";
		coverObj.style.display = "block";
	}else if(operate == 'close'){
		document.body.style.overflow = "visible";
		obj.style.display = "none";
		coverObj.style.display = "none";
		return;
	};

	/*modal_width = obj.offsetWidth;
	modal_height = obj.offsetHeight;
	win_left = ((win_width-modal_width)/2).toFixed();
	win_top = ((win_height-modal_height)/2).toFixed();
	obj.style.left = win_left+"px";
	obj.style.top = win_top+"px";*/
	//关闭弹窗
	if (closeObj) {
		closeObj.onclick = function(){
			document.body.style.overflow = "visible";
			obj.style.display = "none";
			coverObj.style.display = "none";
		}
	};
	//androidH();
}
/*radioCheck();
$(function(){
	radioCheck();
})*/
/*function radioCheck(){//alert(1)
	$(".radio_div").each(function(index,el){
		$(el).find(".is_label").click(function(){
			$(this).addClass('radio_cur').siblings('.is_label').removeClass('radio_cur');
			$(this).children('input').attr('checked', true);
			$(this).siblings('.is_label').children('input').removeAttr("checked");
			//alert($(this).children('input').attr('checked'));
		});
	});
}*/
function androidH(){
	var w_height = $(window).height();
	$(".platform-android .overmodal .modal_b input").focus(function(){
		//$(this).parents('ion-nav-view').height(w_height-300);
		if(this.style.imeMode=='disabled'){
			$(this).parents('ion-nav-view').height(w_height);
		}else{
			$(this).parents('ion-nav-view').height(w_height-300);
		}
	});
	$(".platform-android .overmodal .modal_b input").blur(function(){
		$(this).parents('ion-nav-view').height(w_height);
	});
}